<view class="main">
    <view class="title">设置分组</view>
    <view class="memberTotal">
        <view class="memberBar" qq:for='{{member}}' qq:key="{{index}}">
            <view class="userName">{{item.userName}} {{item.group!="未分组"&&item.group?'('+item.group+')':''}}</view>
            <van-button class='delete' type="danger" size='mini' bind:click='delete' data-username="{{item.userName}}" data-id="{{item.unionId}}">分组</van-button>
        </view>
    </view>
    <van-popup show="{{ show }}" bind:close="onClose" position='bottom'>
        <van-nav-bar
            title="分组"
            left-text="返回"
            right-text="确认"
            left-arrow
            bind:click-left="onClickLeft"
            bind:click-right="onClickRight"
        />
        <van-picker columns="{{ columns }}" bind:change="onChange" />
    </van-popup>
    <van-toast id="van-toast" />
</view>